package com.example.chatrecommendation.bean.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 学生学习记录
 * @Date 2024-03-07 17:23:10
 * @author Jasmine-drs
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("student_record")
@ApiModel(value="StudentRecord对象", description="学生学习记录")
public class StudentRecord implements Serializable {

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer id;

    @NotNull(message="[学生]不能为空")
    @ApiModelProperty("学生")
    private Integer studentId;

    @NotNull(message="[0 视频，1 ppt，2 教案，3 试题，4 试卷]不能为空")
    @ApiModelProperty("0 视频，1 ppt，2 教案，3 试题，4 试卷")
    private Integer type;

    @ApiModelProperty("对应的id")
    private Integer valueId;

    @ApiModelProperty("题目对错")
    private Integer isTrue;

    @ApiModelProperty("完成时间")
    private Double time;

    @ApiModelProperty("真实时间")
    private Long trueTime;

    @ApiModelProperty("题目难度")
    private Double difficulty;

    @NotNull(message="[创建时间]不能为空")
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @NotNull(message="[修改时间]不能为空")
    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
